﻿<?xml version="1.0" encoding="utf-8"?>
<servers>
  <server uniqueKey="WebServerTomcat" os="W2K8R2" cluster="false" winrmPort="{templateBindingValue path=winrmPort }" ApplicationManagementModule="{templateBindingValue path=ApplicationManagementModule,default=Application.Management }"
          autoDownload="{templateBindingValue path=autoDownload,default=true,convert=convertTo-Boolean }" PreferredHostNameConnection="{templateBindingValue path=PreferredHostNameConnection,default=null }">
    <windowsFeatures type="Collection">
      <windowsFeature uniqueKey="Telnet-Client" ensure="Present" />
      <windowsFeature uniqueKey="XPS-Viewer" ensure="Absent" />
    </windowsFeatures>
    <products type="HashTable">
      <product uniqueKey="SlikSvn" template="SlikSvn" version="1.8.11" architecture="x64" parentFolder="Program64BitsDirectory" packageType="Package" />
      <product uniqueKey="Winmerge" template="Winmerge" version="2.14.0" architecture="x64" parentFolder="Program64BitsDirectory" packageType="Package" />
      <product uniqueKey="MESFModules" template="MESFModules" version="1.0.0" architecture="x64" parentFolder="RootToolsDirectory" packageType="MsDeployPackage" />
    </products>
    <folders type="Collection">
      <!-- The Source Directory is mandatory : TODO Add this mapping from the productMapping element-->
      <folder uniqueKey="RootLoggingDirectory" path="Logs" share="Logs" relative="true" parentFolder="RootTemporaryDirectory" />
      <folder uniqueKey="RootTemporaryDirectory" path="d:\Temp" relative="false" />
      <folder uniqueKey="RootSourceDirectory" path="Sources" share="Sources" relative="true" parentFolder="RootTemporaryDirectory" />
      <folder uniqueKey="RootToolsDirectory" path="Tools" relative="true" parentFolder="RootMiddlewareDirectory" />
      <folder uniqueKey="RootMiddlewareDirectory" path="Middleware" relative="true" parentFolder="RootTemporaryDirectory" />
      <folder uniqueKey="RootApplicationDirectory" path="Applications" relative="true" parentFolder="RootTemporaryDirectory" />
      <folder uniqueKey="Program64BitsDirectory" path="C:\Program Files" relative="false" />
      <folder uniqueKey="Program32BitsDirectory" path="C:\Program Files (x86)" relative="false" />

      <!-- Mandatory folder to use Application.Management Module -->
      <folder uniqueKey="RootDeliveryDirectory" path="Delivery" share="d$\temp\sources\delivery" relative="true" parentFolder="RootSourceDirectory" />
      <folder uniqueKey="RootBackupDirectory" path="Backup" relative="true" parentFolder="RootTemporaryDirectory" />
      <folder uniqueKey="RootWorkingDirectory" path="WorkingDir" relative="true" parentFolder="RootTemporaryDirectory" />

      <!-- Specific folders for this template-->
      <folder uniqueKey="TomcatDeploymentDirectory" path="Tomcat" relative="true" parentFolder="RootMiddlewareDirectory" />
      <folder uniqueKey="JavaDeploymentDirectory" path="Framework\Java" relative="true" parentFolder="RootMiddlewareDirectory" />
      <folder uniqueKey="ApacheDeploymentDirectory" path="Apache" relative="true" parentFolder="RootMiddlewareDirectory" />
      <folder uniqueKey="MESFPowershellFodler" path="Powershell" relative="true" parentFolder="RootToolsDirectory" />
    </folders>
    <RemoteConnection uniqueKey="RemoteConnection" type="winrm" port="{templateBindingValue path=winrmPort, default=5985 }" useSSL="{templateBindingValue path=winrmSSL, default=false }" />
    
    <!-- Local groups -->
    <groups type="Hashtable">
      <group dataContext="localGroups" templateBindingType="Collection"
            uniqueKey="{templateBindingValue path=uniquekey}" principal="{templateBindingValue path=principal}">
        <members type="Hashtable">
          <member uniqueKey="{templateBindingValue path=uniquekey}" dataContext="members" templateBindingType="Collection" principal="{templateBindingValue path=principal}" />
        </members>
      </group>
    </groups>
    <!--<groups dataContext="localGroups" templateBindingType="Collection"
            uniqueKey="{templateBindingValue path=uniquekey}" principal="{templateBindingValue path=principal}">
      <members dataContext="members" templateBindingType="Collection" principal="{templateBindingValue path=principal}" />
    </groups>-->



  </server>
</servers>
